Optimal. Leaf size=48 \[ -\frac{1}{3} (1-x)^{3/2} (x+1)^{3/2}+\frac{1}{2} \sqrt{1-x} x \sqrt{x+1}+\frac{1}{2} \sin ^{-1}(x) \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0292912, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235 \[ -\frac{1}{3} (1-x)^{3/2} (x+1)^{3/2}+\frac{1}{2} \sqrt{1-x} x \sqrt{x+1}+\frac{1}{2} \sin ^{-1}(x) \]
Antiderivative was successfully verified.
[In] Int[Sqrt[1 - x]*(1 + x)^(3/2),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 5.1938, size = 36, normalized size = 0.75 \[ \frac{x \sqrt{- x + 1} \sqrt{x + 1}}{2} - \frac{\left (- x + 1\right )^{\frac{3}{2}} \left (x + 1\right )^{\frac{3}{2}}}{3} + \frac{\operatorname{asin}{\left (x \right )}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((1-x)**(1/2)*(1+x)**(3/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.0230682, size = 40, normalized size = 0.83 \[ \frac{1}{6} \sqrt{1-x^2} \left (2 x^2+3 x-2\right )+\sin ^{-1}\left (\frac{\sqrt{x+1}}{\sqrt{2}}\right ) \]
Antiderivative was successfully verified.
[In] Integrate[Sqrt[1 - x]*(1 + x)^(3/2),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.007, size = 71, normalized size = 1.5 \[{\frac{1}{3}\sqrt{1-x} \left ( 1+x \right ) ^{{\frac{5}{2}}}}-{\frac{1}{6}\sqrt{1-x} \left ( 1+x \right ) ^{{\frac{3}{2}}}}-{\frac{1}{2}\sqrt{1-x}\sqrt{1+x}}+{\frac{\arcsin \left ( x \right ) }{2}\sqrt{ \left ( 1+x \right ) \left ( 1-x \right ) }{\frac{1}{\sqrt{1-x}}}{\frac{1}{\sqrt{1+x}}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((1-x)^(1/2)*(1+x)^(3/2),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.50034, size = 38, normalized size = 0.79 \[ -\frac{1}{3} \,{\left (-x^{2} + 1\right )}^{\frac{3}{2}} + \frac{1}{2} \, \sqrt{-x^{2} + 1} x + \frac{1}{2} \, \arcsin \left (x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x + 1)^(3/2)*sqrt(-x + 1),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.209319, size = 189, normalized size = 3.94 \[ \frac{2 \, x^{6} + 3 \, x^{5} - 12 \, x^{4} - 15 \, x^{3} + 12 \, x^{2} + 3 \,{\left (2 \, x^{4} + 3 \, x^{3} - 4 \, x^{2} - 4 \, x\right )} \sqrt{x + 1} \sqrt{-x + 1} - 6 \,{\left (3 \, x^{2} -{\left (x^{2} - 4\right )} \sqrt{x + 1} \sqrt{-x + 1} - 4\right )} \arctan \left (\frac{\sqrt{x + 1} \sqrt{-x + 1} - 1}{x}\right ) + 12 \, x}{6 \,{\left (3 \, x^{2} -{\left (x^{2} - 4\right )} \sqrt{x + 1} \sqrt{-x + 1} - 4\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x + 1)^(3/2)*sqrt(-x + 1),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 19.0127, size = 165, normalized size = 3.44 \[ \begin{cases} - i \operatorname{acosh}{\left (\frac{\sqrt{2} \sqrt{x + 1}}{2} \right )} + \frac{i \left (x + 1\right )^{\frac{7}{2}}}{3 \sqrt{x - 1}} - \frac{5 i \left (x + 1\right )^{\frac{5}{2}}}{6 \sqrt{x - 1}} - \frac{i \left (x + 1\right )^{\frac{3}{2}}}{6 \sqrt{x - 1}} + \frac{i \sqrt{x + 1}}{\sqrt{x - 1}} & \text{for}\: \frac{\left |{x + 1}\right |}{2} > 1 \\\operatorname{asin}{\left (\frac{\sqrt{2} \sqrt{x + 1}}{2} \right )} - \frac{\left (x + 1\right )^{\frac{7}{2}}}{3 \sqrt{- x + 1}} + \frac{5 \left (x + 1\right )^{\frac{5}{2}}}{6 \sqrt{- x + 1}} + \frac{\left (x + 1\right )^{\frac{3}{2}}}{6 \sqrt{- x + 1}} - \frac{\sqrt{x + 1}}{\sqrt{- x + 1}} & \text{otherwise} \end{cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((1-x)**(1/2)*(1+x)**(3/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.218299, size = 59, normalized size = 1.23 \[ \frac{1}{3} \,{\left (x + 1\right )}^{\frac{3}{2}}{\left (x - 1\right )} \sqrt{-x + 1} + \frac{1}{2} \, \sqrt{x + 1} x \sqrt{-x + 1} + \arcsin \left (\frac{1}{2} \, \sqrt{2} \sqrt{x + 1}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((x + 1)^(3/2)*sqrt(-x + 1),x, algorithm="giac")
[Out]